package com.yingside.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 登录日志表
 * </p>
 *
 * @author yingside
 * @since 2020-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginLog extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 登录时间
     */
    private LocalDateTime loginTime;

    /**
     * 用户名
     */
    private String username;

    /**
     * 登录状态, 0 表示登录失败, 1 表示登录成功.
     */
    private String loginStatus;

    /**
     * IP
     */
    private String ip;


}
